<?php

/**
 * 文件注释
 *
 * Author: Liam
 * Datetime: 11/27/17 17:00 PM
 */

namespace ApiBundle\Controller;

use BaseBundle\Controller\BaseController;
use Symfony\Component\HttpFoundation\Request;

class BannerController extends BaseController{

    //  banner列表
    public function bannerListAction()
    {
        $conn = $this->getDoctrine()->getConnection();
        $data['info'] = $conn->fetchAll("SELECT * FROM banner");

        return $this->jsonResponse('操作成功', 0, $data);
    }
}